// app.js
App({
  onLaunch() {
    let songs = wx.getStorageSync('songs')
    if (!songs) {
      songs = this.loadSongs()
    }
  },

  // 此处删除了歌曲数据加载代码
  loadSongs: function () {
    const songs = {
      publicmusic: [
        { id: 1, title: 'Nobody', artist: 'OnePublic',img: '/audio/image/nobody.png', isplay: false, src: '/audio/nobody.mp4'},
        { id: 2, title: '有点甜', artist: '汪苏泷/花泽香菜', img: '/audio/image/有点甜.png',isplay: false ,src: '/audio/有点甜.m4a'}
      ],
      classicalmusic: [
        { id: 1, title: 'journey', artist: 'Capo Productions', img: '/audio/image/journey.png'}
      ]
    }
    return 
  }
})
